package com.zxy.ziems.collector.service;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 10348359
 * @create 2024-05-02 20:26
 */
@Component
public class StopService implements DisposableBean {
    @Override
    public void destroy() throws Exception {
        service.stopScheduler();
    }

    @Autowired
    ProcessConfigurationService service;

    public void setService(ProcessConfigurationService processConfigurationService) {
        this.service = processConfigurationService;
    }
}
